﻿
set stsadm="C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\BIN"
set site="http://navy"
set scGroup="Item-level Permission"
set ctGroup="Item-level Permission"

echo stsadm: %stsadm%
echo site: %site%
echo Site Columns group: %scGroup%
echo Content Types group: %ctGroup%

%stsadm%\stsadm.exe -o GenContentTypesXml -url %site% -groupFilter %ctGroup% -outputFile contentTypesDATA.xml

Echo
%stsadm%\stsadm.exe -o GenSiteColumnsXml -url %site% -groupFilter %scGroup% -outputFile siteColumnsDATA.xml